#include <iostream>
#include <fstream>
#include <cstdlib>
#include <ctime>
#include <new>
#include <algorithm>
#include <numeric>
#include <vector>
#include <iterator>
#include <functional>
#include <boost/bind.hpp>
#include <boost/timer.hpp>
#include <boost/checked_delete.hpp>
#include <boost/shared_ptr.hpp>

using namespace std;

int main(int atrgc, char** argv)
{
	int *p = new int [23];
	delete [] p;

	new int[45][23];
	int array[3][45][23];
	array[1][3][4] = 1234;

	p = new int(9);
//	p=0;
//	p=NULL;
	cout<<p<<endl;
//        delete p;	
	cout<<*p<<endl;
	boost::checked_delete(p);	
	boost::checked_delete(p);	

	return 0;
}
